package com.zto.design.command;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-11-28 19:23
 **/
public class ConcreteCommandB implements ICommand {
    private Receiver receiver = null;

    public ConcreteCommandB(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        System.out.println("命令B执行...");
        this.receiver.doB();
    }
}
